-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move returns before goto when applicable. #4774
Conversation
This could be done when any of the returned variables is remapped. Code quote: let mut return_vars = returned_vars.to_vec();
return_vars.pop();
return_vars.push(*remapped_return);
self.fixes.push(FixInfo { block_id, return_vars }); |
a7856a0
to
d827fdf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 91 of 96 files at r1, 4 of 4 files at r2, 9 of 9 files at r3.
Reviewable status: 104 of 105 files reviewed, 1 unresolved discussion (waiting on @ilyalesokhin-starkware)
crates/cairo-lang-lowering/src/db.rs
line 377 at r2 (raw file):
return_optimization(db, &mut lowered); // optimize_remappings(&mut lowered);
?
d827fdf
to
1535e29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 104 of 105 files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-lowering/src/db.rs
line 377 at r2 (raw file):
Previously, orizi wrote…
?
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware)
1535e29
to
677ea1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r5, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware)
677ea1c
to
a652e65
Compare
This change is